package com.mkvld.appietijdenv2.fragments;

import com.mkvld.appietijdenv2.data.Payment;
import com.mkvld.appietijdenv2.R;

public class FragPayrollKPTV9 extends FragPayrollV9 {
	double loan;
	
	@Override
	protected int getLayoutId() {
		return R.layout.frag_payroll_kpt;
	}
	
	@Override
	protected int getTitleViewId() {
		return R.id.fpk_title;
	}
	
	@Override
	protected PayrollPart[] getPayrollParts() {
		return new PayrollPart[] {
			new PayrollPart(payroll.data[Payment.WORKED], R.id.fpk_worked_lbl, R.id.fpk_worked_hours, R.id.fpk_worked_loan, true, true),
			new PayrollPart(payroll.data[Payment.ALLOWANCE], R.id.fpk_allowance_lbl, R.id.fpk_allowance_hours, R.id.fpk_allowance_loan, false, true),
			new PayrollPart(payroll.data[Payment.SICK], R.id.fpk_sick_lbl, R.id.fpk_sick_hours, R.id.fpk_sick_loan, false, true),
			new PayrollPart(payroll.data[Payment.BD], R.id.fpk_bd_lbl, R.id.fpk_bd_hours, R.id.fpk_bd_loan, false, true),
			new PayrollPart(payroll.data[Payment.TVT_PAYED], R.id.fpk_tvt_lbl, R.id.fpk_tvt_hours, R.id.fpk_tvt_loan, false, true),
			new PayrollPart(payroll.data[Payment.ADV], R.id.fpk_adv_lbl, R.id.fpk_adv_hours, R.id.fpk_adv_loan, false, true),
			new PayrollPart(payroll.data[Payment.VACATION], R.id.fpk_vacaction_lbl, R.id.fpk_vacation_hours, R.id.fpk_vacation_loan, false, true),
			new PayrollPart(payroll.data[Payment.VACATION_ALLOWANCE], R.id.fpk_vacation_allowance_lbl, R.id.fpk_vacation_allowance_hours, R.id.fpk_vacation_allowance_loan, false, false),
			new PayrollPart(payroll.data[Payment.WUK], R.id.fpk_wuk_lbl, R.id.fpk_wuk_hours, R.id.fpk_wuk_loan, false, false),
			new PayrollPart(payroll.data[Payment.KPT_GROSS], R.id.fpk_gross_lbl, R.id.fpk_gross_hours, R.id.fpk_gross_loan, true, false)
		};
	}	
}
